/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package maumau;

import java.util.HashMap;
import java.util.Vector;
/**
 *
 * @author buraha
 */
public class MauMau_Data {

//    private MauMau_State current_state = new MauMau_State();
//    private Vector<Integer> current_actions = new Vector<Integer>();
    
    
    public MauMau_Data() {   
    }
      
//    public void load(MauMau_State state, Vector<Integer> actions, double reward){
//        current_state = state;
//        current_actions = actions;
//        current_reward = reward;
//    }
    
    private int c_topCard;
    private Vector<Integer> c_actions = new Vector<Integer>();
    private double c_reward;
    private double[][][] aqk;
   
    
// Laden der relevanten Daten für den reduzierten State
    
    public void load(int topCard, Vector<Integer> actions, double reward){
        c_topCard = topCard;
        c_actions = actions;
        c_reward = reward;
    }

//    @Override
//    public boolean equals(Object obj) {
//        if (obj == null) {
//            return false;
//        }
//        if (getClass() != obj.getClass()) {
//            return false;
//        }
//        final MauMau_Data other = (MauMau_Data) obj;
//        if (this.c_topCard != other.c_topCard) {
//            return false;
//        }
//        if (this.c_actions != other.c_actions && (this.c_actions == null || !this.c_actions.equals(other.c_actions))) {
//            return false;
//        }
//        if (Double.doubleToLongBits(this.c_reward) != Double.doubleToLongBits(other.c_reward)) {
//            return false;
//        }
//        return true;
//    }

// Erzeugen des Hashwertes
    
    @Override
    public int hashCode() {
        int hash = 7;
        hash = 41 * hash + this.c_topCard;
        hash = 41 * hash + (this.c_actions != null ? this.c_actions.hashCode() : 0);
        hash = 41 * hash + (int) (Double.doubleToLongBits(this.c_reward) ^ (Double.doubleToLongBits(this.c_reward) >>> 32));
        return hash;
    }    
    
    HashMap<Integer, Double[][][]> Saqk_Map = new HashMap<Integer, Double[][][]>();
    
    
    
    
    
    
    
    
    
    
    
            
            
            
    
    
    
    
    
    
    
    
    
    
    
    
    
    
       
    
    
    
    
    
    
    
    
    
    
    
}
